<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="${ctx }">


<script type="text/javascript"
	src="http://webapi.amap.com/maps?v=1.3&amp;key=f9d326eec206fa5f8ae57ccb028fc9bb&amp;"></script>



<!-- 字符编码 -->
<meta charset="UTF-8" content="">
<!-- IE兼容模式 -->
<meta http-equiv="X-UA-COMPATIBLE" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<!-- 采用高速模式渲染（目前仅有360支持） -->
<meta name="renderer" content="webkit">
<!-- Bootstrap 核心 CSS库 -->
<link href="${ctx }/styles/BJUI/new/css/bootstrap.min.css"
	rel="stylesheet">
<!-- Font-awesome 图标 CSS库 -->
<link href="${ctx }/styles/BJUI/new/css/font-awesome.min.css"
	rel="stylesheet">
<!-- JQuery UI CSS库 -->
<link href="${ctx }/styles/BJUI/new/css/jquery-ui.min.css"
	rel="stylesheet">
<!-- JQuery -->
<script src="${ctx }/styles/BJUI/new/js/jquery-1.10.2.min.js"
	type="text/javascript"></script>
<script src="${ctx }/styles/BJUI/new/js/jquery.unobtrusive-ajax.min.js"
	type="text/javascript"></script>
<!-- JQuery UI -->
<script src="${ctx }/styles/BJUI/new/js/jquery-ui.min.js"
	type="text/javascript"></script>
<!-- 脉动提示插件 -->
<script src="${ctx }/styles/BJUI/new/js/jquery.pulsate.min.js"
	type="text/javascript"></script>
<!-- Bootstrap 核心 JS库 -->
<script src="${ctx }/styles/BJUI/new/js/bootstrap.min.js"
	type="text/javascript"></script>
<!-- 浏览器判断 -->
<script src="${ctx }/styles/BJUI/new/js/Browser.js"
	type="text/javascript"></script>

<script src="${ctx }/styles/BJUI/new/mobiscroll/js/mobiscroll.core.js"
	type="text/javascript"></script>
<script src="${ctx }/styles/BJUI/new/mobiscroll/js/mobiscroll.frame.js"
	type="text/javascript"></script>
<script
	src="${ctx }/styles/BJUI/new/mobiscroll/js/mobiscroll.scroller.js"
	type="text/javascript"></script>
<script
	src="${ctx }/styles/BJUI/new/mobiscroll/js/mobiscroll.util.datetime.js"
	type="text/javascript"></script>
<script
	src="${ctx }/styles/BJUI/new/mobiscroll/js/mobiscroll.datetimebase.js"
	type="text/javascript"></script>
<script
	src="${ctx }/styles/BJUI/new/mobiscroll/js/mobiscroll.datetime.js"
	type="text/javascript"></script>
<script
	src="${ctx }/styles/BJUI/new/mobiscroll/js/mobiscroll.frame.android.js"
	type="text/javascript"></script>
<script
	src="${ctx }/styles/BJUI/new/mobiscroll/js/mobiscroll.frame.android-holo.js"
	type="text/javascript"></script>
<script
	src="${ctx }/styles/BJUI/new/mobiscroll/js/i18n/mobiscroll.i18n.zh.js"
	type="text/javascript"></script>
<link href="${ctx }/styles/BJUI/new/mobiscroll/css/mobiscroll.frame.css"
	rel="stylesheet" type="text/css" />
<link
	href="${ctx }/styles/BJUI/new/mobiscroll/css/mobiscroll.frame.android.css"
	rel="stylesheet" type="text/css" />
<link
	href="${ctx }/styles/BJUI/new/mobiscroll/css/mobiscroll.frame.android-holo.css"
	rel="stylesheet" type="text/css" />
<link
	href="${ctx }/styles/BJUI/new/mobiscroll/css/mobiscroll.scroller.css"
	rel="stylesheet" type="text/css" />
<link
	href="${ctx }/styles/BJUI/new/mobiscroll/css/mobiscroll.scroller.android.css"
	rel="stylesheet" type="text/css" />
<link
	href="${ctx }/styles/BJUI/new/mobiscroll/css/mobiscroll.scroller.android-holo.css"
	rel="stylesheet" type="text/css" />
<!-- 母版页 样式 -->
<link href="${ctx }/styles/BJUI/new/css/carousel.css" rel="stylesheet">
<link href="${ctx }/styles/BJUI/new/css/style.css" rel="stylesheet">
<link href="${ctx }/styles/BJUI/new/css/leon.css" rel="stylesheet">
<link href="${ctx }/styles/BJUI/new/css/index.css" rel="stylesheet">
<title>下单</title>

</head>
<!-- Start: Ajax Tiper -->
<!-- Start AJAX提示（全局） -->
<link href="${ctx }/styles/BJUI/new/css/nprogress.css" rel="stylesheet">
<script src="${ctx }/styles/BJUI/new/js/nprogress.js"
	type="text/javascript"></script>

<!-- End AJAX提示（全局） -->
<!-- End: Ajax Tiper -->

<!-- Start: Browser Tiper -->
<link href="${ctx }/styles/BJUI/new/css/Browsertiper.css"
	rel="stylesheet" />
<form id="form" class="form-inline" action="">
	<div class="clearfix">
		<div class="carousel-inner" id="mainWindow" style="position: relative">
			<div class="row" style="margin-top: 5px">
				<a class="a-black">
					<div class="col-sm-8 box-40-mb-1">
						<label class="label-text display-left label-and-input">姓名</label>
						<input id="realName" name="realName"
							class="input-max display-right placeholder-right"
							value="${ob.realName}" placeholder="必填">
					</div>
				</a>

				<div class="col-sm-8 box-40-mb-1">
					<label class="label-text display-left label-and-input">性别</label>

					<div class="display-right">
						<div class="dropdown">
							<button class="btn btn-default dropdown-toggle" type="button"
								name="dropdownMenu1" id="dropdownMenu1" data-toggle="dropdown"
								aria-haspopup="true" aria-expanded="true"
								style="border: none; height: 40px; color: #a9a9a9; background-color: #ffffff">
								${ob.genderValue} <span class="caret"></span>
							</button>
							<ul class="dropdown-menu" aria-labelledby="dropdownMenu1"
								style="min-width: 0; right: 0; left: auto">
								<li><a onclick="sex(1)">男</a></li>
								<li><a onclick="sex(2)">女</a></li>
							</ul>
						</div>
					</div>
				</div>


				<div class="col-sm-8 box-40-mb-1 content">
					<input type="text" name="userDate" id="userDate"
						class="input-max display-left placeholder-left"
						placeholder="请填写你的出生日期">
				</div>

				<input type="hidden" name="gender" value="  ${ob.gender}"
					id="gender" /> <input id="accountId" name="accountId"
					type="hidden" value="${ob.id}" />
				<div class="col-sm-8" onclick="Submit()"
					style="position: absolute; margin-top: 25px; bottom: 0; left: 0; width: 100%; margin-bottom: 0; padding: 0">
					<a class="a-blue">
						<div id="confirmButton"
							class="display-right text-center cursor-pointer"
							style="width: 100%;">
							<span style="line-height: 50px; color: #ffffff">确定</span>
						</div>
					</a>
				</div>

			</div>
		</div>
	</div>
</form>
<body></body>


<!-- End: Browser Tiper -->

<script src="${ctx }/styles/BJUI/new/js/ddes.js" charset="UTF-8"
	type="text/javascript"></script>
<script type="text/javascript">
	$(function() {
		var demo, theme, mode, display, lang;
		$('#userDate').val('').mobiscroll().date({
			theme : 'android-holo',
			mode : mode,
			display : display,
			lang : 'zh',
			defaultValue : new Date('2016-06-07'),
			dateFormat : 'yyyy-mm-dd '
		}).val('1992-09-08');

		$('.settings').on(
				'change',
				function() {
					demo = $('#demo').val();
					theme = $('#theme').val() || $.mobiscroll.defaults.theme,
							mode = "scroller", display = "modal", lang = $(
									'#language').val();

					$('.demo-cont').hide();
					$("#demo_cont_" + demo).show();

				});
	});

	function sex(id) {
		$("#gender").val(id);
		var str = "";
		if (id == 2) {
			str = "女";
		}
		if (id == 1) {
			str = "男";
		}
		$("#dropdownMenu1").html(str);
		;

	}
	function Submit() {

		$.ajax({
			data : $("#form").serialize(),
			type : "POST",
			dataType : 'json',
			url : "${ctx }/weixinView/editSubtim",
			error : function(data) {
				alert("出错了！！:");
			},
			success : function(data) {
				if (data['ret'] == 0) {
					alert(data['msg']);
					window.location.href = "${ctx }/weixin/userInfo.do";
				} else {
					alert(data['msg']);
				}
			}
		});

	}
</script>
<body></body>
</html>
